﻿using Hotel.DAL;

namespace Hotel.BLL
{
    public class AdminBLL
    {
        public AdminBLL(AdminDAL adminDAL)
        {
            AdminDAL = adminDAL;
        }

        public AdminDAL AdminDAL { get; }

        /// <summary>
        /// 管理员登录
        /// </summary>
        /// <param name="userName">管理员账号</param>
        /// <param name="userPwd">管理员密码</param>
        /// <returns></returns>
        public dynamic Login(string userName, string userPwd)
        {
            try
            {
                var res = AdminDAL.Login(userName, userPwd);
                return res;
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
